package com.disv.service.resp;

import com.alibaba.fastjson2.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @desc: Resp
 * @author: Chao Zhang
 * @date: 2022/10/28 17:44
 */
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Resp<T> extends BaseResp {

    private T data;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
